﻿using System.Windows.Forms;
namespace RollBack.src.ui
{
    partial class Explorer2PaneView
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.topPanel = new System.Windows.Forms.Panel();
            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
            this.m_leftPanel = new RollBack.src.ui.ExplorerLeftPanel();
            this.m_rightPanel = new RollBack.src.ui.ExplorerRightPanel();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            this.SuspendLayout();
            // 
            // topPanel
            // 
            this.topPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.topPanel.Dock = System.Windows.Forms.DockStyle.Fill;
            this.topPanel.Location = new System.Drawing.Point(0, 0);
            this.topPanel.Name = "topPanel";
            this.topPanel.Size = new System.Drawing.Size(200, 100);
            this.topPanel.TabIndex = 0;
            // 
            // splitContainer1
            // 
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            this.splitContainer1.Name = "splitContainer1";
            // 
            // splitContainer1.Panel1
            // 
            this.splitContainer1.Panel1.Controls.Add(this.m_leftPanel);
            // 
            // splitContainer1.Panel2
            // 
            this.splitContainer1.Panel2.Controls.Add(this.m_rightPanel);
            this.splitContainer1.Size = new System.Drawing.Size(572, 429);
            this.splitContainer1.SplitterDistance = 190;
            this.splitContainer1.TabIndex = 0;
            // 
            // driveLister
            // 
            this.m_leftPanel.Dock = System.Windows.Forms.DockStyle.Fill;
            this.m_leftPanel.Location = new System.Drawing.Point(0, 0);
            this.m_leftPanel.Name = "driveLister";
            this.m_leftPanel.Size = new System.Drawing.Size(190, 429);
            this.m_leftPanel.TabIndex = 0;
		    this.m_leftPanel.AddTreeViewDelegate(this.treeView1_AfterSelect);
            this.m_leftPanel.addKeyEventHandler(this.leftPanelKeyHandler);
            this.m_leftPanel.addMouseDownHandler(this.treeNodeClickEventHandler);

            // 
            // m_fileList
            // 
            this.m_rightPanel.AllowDrop = true;
            this.m_rightPanel.Dock = System.Windows.Forms.DockStyle.Fill;
            this.m_rightPanel.Location = new System.Drawing.Point(0, 0);
            this.m_rightPanel.Name = "m_fileList";
            this.m_rightPanel.Size = new System.Drawing.Size(378, 429);
            this.m_rightPanel.TabIndex = 0;
            // 
            // DriveAndFilePanel
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.splitContainer1);
            this.Name = "DriveAndFilePanel";
            this.Size = new System.Drawing.Size(572, 429);
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            this.splitContainer1.ResumeLayout(false);
            this.ResumeLayout(false);

        }

        public void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
        {
            TreeNode tn = m_leftPanel.getSelectedNode();
            if (tn != null)
            {
                string path = tn.FullPath;
                string root = m_leftPanel.m_explorerViewData.RootDisplayNodePath;
                if ( root != null && (path.Length > root.Length))
                {
                    path = path.Remove(0, m_leftPanel.m_explorerViewData.RootDisplayNodePath.Length);
                }
                AppUI.showStatusMessage(path);
            }
        }

        #endregion

        private System.Windows.Forms.SplitContainer splitContainer1;
        private System.Windows.Forms.Panel topPanel;
        public ExplorerRightPanel m_rightPanel;
        public ExplorerLeftPanel m_leftPanel;
    }
}
